<div class="fly-home" style="background-image: url();">
    <img src="__ROOT__/{$uext['avatar']}" alt="{$uname}">
    <h1>
        {$_SESSION['nickname']}
        <?php if ($sex == '男') {
        ?>
            <i class="iconfont icon-nan"></i>
        <?php
        } elseif ($sex == '女') {
        ?>
            <i class="iconfont icon-nv"></i>
        <?php
        } ?>
    </h1>
    <p class="fly-home-info">
        <i class="iconfont icon-zuichun" title="飞吻">
        </i>
        <span style="color: #FF7200;">
            {$uext['kiss']}飞吻
        </span>
        <i class="iconfont icon-shijian">
        </i>
        <span>
            <?php echo date('Y-m-d', $create_time);?> 加入
        </span>
        <i class="iconfont icon-chengshi">
        </i>
        <span>
            来自{$city}
        </span>
    </p>
    <p class="fly-home-sign">
        （{$uext['sign']}）
    </p>
</div>
<div class="main fly-home-main">
    <div class="layui-inline fly-home-jie">
        <h2 class="page-title">
            {$_SESSION['nickname']} 最近的提问
        </h2>
        <ul class="jie-row">
        <?php if (!empty($uqlist)) {
            foreach ($uqlist as $uqlv) { ?>
                <li>
                    <a href="{:U('home/question/qpage',array('qid'=>$uqlv['qid']))}" class="jie-title">
                        {$uqlv['title']}
                    </a>
                    <i>
                        <?php echo timeFormat($uqlv['qtime']);?>
                    </i>
                    <em>
                        {$uqlv['views']}阅/{$uqlv['num_of_ans']}答
                    </em>
                </li>  
        <?php }
        } else { ?>
            <li style="min-height: 50px; padding:30px 0; height:auto;" class="fly-none">
                <i style="font-size:14px;">
                    没有发表任何求解
                </i>
            </li>
        <?php } ?>
        </ul>
    </div>
    <div class="layui-inline fly-home-da">
        <h2 class="page-title">
            {$_SESSION['nickname']} 最近的回答
        </h2>
        <ul class="home-jieda">
            <?php if (!empty($ualist)) {
                foreach ($ualist as $ualv) { ?>
                    <li>
                        <p>
                            <span>
                                {:timeFormat($ualv['atime'])}
                            </span>
                            在
                            <a href="{:U('home/question/qpage',array('qid'=>$ualv['qid']))}" target="_blank">
                                {$ualv['title']}
                            </a>
                            中回答：
                        </p>
                        <div class="home-dacontent">
                            {:htmlspecialchars_decode($ualv['content'])}
                        </div>
                    </li>
            <?php }
            } else { ?>
                <li style="min-height: 50px; padding:30px 0; height:auto;" class="fly-none">
                    <span>
                        没有回答任何问题
                    </span>
                </li>
            <?php } ?>
        </ul>
    </div>
</div>